<?php
//新工厂类
class NewFactory implements IFactory{
	public function getWeapon($weapon){
		switch ($weapon){
			case 'handgun':
				return new NewHandgun();
				break;
			case 'sniper':
				return new NewSniper();
				break;
		}
	}
}

